package com.jams.goodox.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.jams.goodox.net.BaseEntity;

/**
 * Created by Jin on 2016/8/19.
 * Description
 */
public class BusInfoBySubIdPart extends BaseEntity {
    /**
     * busId : 92780bfa-aef4-11e5-af68-00163e005381
     * busImg : /img/icon/icon145326100246583.png
     * busName : 双城测试
     * freightMoney : 0.00
     * minMoney : 0.00
     * serviceTime : 07:30 - 17:30
     * serviceType : 1
     * storeId : 9279a380-aef4-11e5-af68-00163e005381
     * storeLabel : 欢迎来的神烦大叔s
     * storeName : 双城测试
     * subCode : 223
     * subIntroduce :    <span style="font-family:宋体;font-size:10.5pt;">玻璃内</span><span style="font-family:'Calibri','sans-serif';font-size:10.5pt;">/</span><span style="font-family:宋体;font-size:10.5pt;">外侧清洗、钟点家政服务、单位开荒保洁</span>
     * subMinprice : 0.0
     * subQuality : 5
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {
        private String busId;
        private String busImg;
        private String busName;
        private Double freightMoney;
        private Double minMoney;
        private String serviceTime;
        private int serviceType;
        private String storeId;
        private String storeLabel;
        private String storeName;
        private String subCode;
        private String subIntroduce;
        private double subMinprice;
        private String subQuality;
        private int isOpenTime;
        private String subName;

        private String subId;

        private String pauseFromDate;
        private String pauseToDate;
        private int invoiceRule;//开票类型：0不开票 1普通发票 2专用发票 3都可以开

        private int subHandle;//1 个人服务 2企业服务

        public int getInvoiceRule() {
            return invoiceRule;
        }

        public void setInvoiceRule(int invoiceRule) {
            this.invoiceRule = invoiceRule;
        }

        public int getInvoiceTarget() {
            return invoiceTarget;
        }

        public void setInvoiceTarget(int invoiceTarget) {
            this.invoiceTarget = invoiceTarget;
        }

        private int invoiceTarget;//开票对象 1所有用户 2面向企业 3面向员工

        public String getSubName() {
            return subName;
        }

        public void setSubName(String subName) {
            this.subName = subName;
        }

        public String getSubId() {
            return subId;
        }

        public void setSubId(String subId) {
            this.subId = subId;
        }

        public int getIsOpenTime() {
            return isOpenTime;
        }

        public void setIsOpenTime(int isOpenTime) {
            this.isOpenTime = isOpenTime;
        }

        public String getPauseFromDate() {
            return pauseFromDate;
        }

        public void setPauseFromDate(String pauseFromDate) {
            this.pauseFromDate = pauseFromDate;
        }

        public String getPauseToDate() {
            return pauseToDate;
        }

        public void setPauseToDate(String pauseToDate) {
            this.pauseToDate = pauseToDate;
        }

        public String getBusId() {
            return busId;
        }

        public void setBusId(String busId) {
            this.busId = busId;
        }

        public String getBusImg() {
            return busImg;
        }

        public void setBusImg(String busImg) {
            this.busImg = busImg;
        }

        public String getBusName() {
            return busName;
        }

        public void setBusName(String busName) {
            this.busName = busName;
        }

        public int getSubHandle() {
            return subHandle;
        }

        public void setSubHandle(int subHandle) {
            this.subHandle = subHandle;
        }

        public double getFreightMoney() {
            if (freightMoney == null) return 0.0;
            return freightMoney;
        }

        public void setFreightMoney(double freightMoney) {
            this.freightMoney = freightMoney;
        }

        public double getMinMoney() {
            if (minMoney == null) return 0.0;
            return minMoney;
        }

        public void setMinMoney(double minMoney) {
            this.minMoney = minMoney;
        }

        public String getServiceTime() {
            return serviceTime;
        }

        public void setServiceTime(String serviceTime) {
            this.serviceTime = serviceTime;
        }

        public int getServiceType() {
            return serviceType;
        }

        public void setServiceType(int serviceType) {
            this.serviceType = serviceType;
        }

        public String getStoreId() {
            return storeId;
        }

        public void setStoreId(String storeId) {
            this.storeId = storeId;
        }

        public String getStoreLabel() {
            return storeLabel;
        }

        public void setStoreLabel(String storeLabel) {
            this.storeLabel = storeLabel;
        }

        public String getStoreName() {
            return storeName;
        }

        public void setStoreName(String storeName) {
            this.storeName = storeName;
        }

        public String getSubCode() {
            return subCode;
        }

        public void setSubCode(String subCode) {
            this.subCode = subCode;
        }

        public String getSubIntroduce() {
            return subIntroduce;
        }

        public void setSubIntroduce(String subIntroduce) {
            this.subIntroduce = subIntroduce;
        }

        public double getSubMinprice() {
            return subMinprice;
        }

        public void setSubMinprice(double subMinprice) {
            this.subMinprice = subMinprice;
        }

        public String getSubQuality() {
            return subQuality;
        }

        public void setSubQuality(String subQuality) {
            this.subQuality = subQuality;
        }



        public DataBean() {
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.busId);
            dest.writeString(this.busImg);
            dest.writeString(this.busName);
            dest.writeValue(this.freightMoney);
            dest.writeValue(this.minMoney);
            dest.writeString(this.serviceTime);
            dest.writeInt(this.serviceType);
            dest.writeString(this.storeId);
            dest.writeString(this.storeLabel);
            dest.writeString(this.storeName);
            dest.writeString(this.subCode);
            dest.writeString(this.subIntroduce);
            dest.writeDouble(this.subMinprice);
            dest.writeString(this.subQuality);
            dest.writeInt(this.isOpenTime);
            dest.writeString(this.subName);
            dest.writeString(this.subId);
            dest.writeString(this.pauseFromDate);
            dest.writeString(this.pauseToDate);
            dest.writeInt(this.invoiceRule);
            dest.writeInt(this.subHandle);
            dest.writeInt(this.invoiceTarget);
        }

        protected DataBean(Parcel in) {
            this.busId = in.readString();
            this.busImg = in.readString();
            this.busName = in.readString();
            this.freightMoney = (Double) in.readValue(Double.class.getClassLoader());
            this.minMoney = (Double) in.readValue(Double.class.getClassLoader());
            this.serviceTime = in.readString();
            this.serviceType = in.readInt();
            this.storeId = in.readString();
            this.storeLabel = in.readString();
            this.storeName = in.readString();
            this.subCode = in.readString();
            this.subIntroduce = in.readString();
            this.subMinprice = in.readDouble();
            this.subQuality = in.readString();
            this.isOpenTime = in.readInt();
            this.subName = in.readString();
            this.subId = in.readString();
            this.pauseFromDate = in.readString();
            this.pauseToDate = in.readString();
            this.invoiceRule = in.readInt();
            this.subHandle = in.readInt();
            this.invoiceTarget = in.readInt();
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }
}
